import api from './index'
const LoginIndex = (data) => {
  return api({ method: 'post', url: '/index/login', data })
}
const getGoodsListApi = (data) => {
  return api({
    method: 'post',
    url: `/product/productsByPage/${data.start}/${data.limit}`,
  })
}
const deleteGoods = (id) => {
  return api({ method: 'delete', url: `/product/del/${id}` })
}
// 导出封装好的方法
export { LoginIndex, getGoodsListApi, deleteGoods }
